/**
 * GameMaster.java
 * Auti h class elehei tin pithanotita nikis-isopalias-sah, kathos kanei kai 
 * newGame, Load, Save.
 */

package chess;

import java.util.Vector;
import javax.swing.JPanel;




class GameMaster extends JPanel {
    
    /**
     * 
     * @param matrix JPanel tis torinis kinishs pou kaleitai h CheckState
     */
    public void checkState(JPanel matrix){}
    
    /**
     * Dmiourgi neo game set, rotondas an prota theli na apothikeusi ti torini katastasi.
     */
    public void newGame(){}
    
    /**
     * Fortonei, olokliri tin kantastasi tou paihnidiou pou eihe apothikeutei.
     * @return Epistrefei Vector pou periehei oles tis katastaseis tou paihnidiou, 
     * pou eihan apothikeutei se proigoumeno paihnidi.
     */
    public Vector loadGame( ){
        Vector<JPanel> loadedPanel=new Vector();
        
        /**
         * 
         * TODO dimiourgia tis diadikasias Load tis katastasis pou ine saved
         * kai apothikeusi autis ston Vector loadedPanel.
         */
        return loadedPanel;
    }
    
    /**
     * Apothikeuei tin trehon katastasi tou paihnidiou kathos kai oles tis proigoumenes
     * kiniseis tou, se ena arheio, oste na einai efikth i epanofortosi tou paihnidiou
     * @param CurrentGame Vector<JPanel> pou periehei tis katastaseis tou paihnidiou
     */
    
    public void saveGame(Vector CurrentGame){ }
}